﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Chinaer.Model.Entities
{
    /// <summary>
    /// 登陆基础表
    /// </summary>    
    public class Model_Base_LoginDetail : Model_Base
    {
        /// <summary>
        /// 登陆信息表编号
        /// </summary>
        [Column("ID")]
        [Key]
        public string ID { get; set; }
        /// <summary>
        /// 登陆IP
        /// </summary>
        [StringLength(20)]
        public string LoginIP { get; set; }

        /// <summary>
        /// 登陆编号
        /// </summary>
        [StringLength(50)]
        public string LoginID { get; set; }
        /// <summary>
        /// 登陆用户名
        /// </summary>
        [StringLength(50)]
        public string LoginName { get; set; }

        private bool _loginStatus = false;
        /// <summary>
        /// 登陆成功状态  登陆成功与否
        /// </summary>
        public bool LoginStatus
        {
            get
            {
                return _loginStatus;
            }
            set
            {
                _loginStatus = value;
            }
        }

    }
}
